package com.dz.lm.dao.userproduct.write;

import com.dz.lm.common.exception.DaoException;
import com.dz.lm.common.utils.stereotype.WriterRepository;
import com.dz.lm.domain.compproduct.CompProduct;
import com.dz.lm.domain.userproduct.UserProduct;

import java.util.Map;

@WriterRepository("writeUserProductDao")
public interface UserProductDao {
    int deleteByPrimaryKey(Integer productId)throws DaoException;


    int insertSelective(UserProduct record)throws DaoException;


    int updateByPrimaryKeySelective(UserProduct record)throws DaoException;

    int updateAgent(Map map)throws DaoException;

    int updateByCompProduct(CompProduct compProduct) throws DaoException;

}